import com.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * com.User: 666
 * Date: 2023-07-22
 * Time: 17:19
 */
@Configuration
public class UserTest {
    @Bean("user1")
    public User user1(){
        User user1 = new User();
        System.out.println("这是user1");
      return user1;
    }
    @Bean("user2")
    public User user2(){
        User user2 = new User();
        System.out.println("这是user2");
        return user2;
    }
}
